cc_test(
  name = "all_test",
  size = "small",
  srcs = ["all_test.cpp"],
  deps = [    # 依赖我自己的库和googletest库
          ":std_shared_ptr",
          ":std_unique_ptr",
          ":std_weak_ptr",
          ":std_smart_ptr_apps",
          "@com_google_googletest//:gtest_main"
     ],
)

cc_library(
    name  = "std_shared_ptr",
    srcs  = ['std_shared_ptr.cpp'],
    hdrs  = ['std_shared_ptr.h'],
)

cc_library(
    name  = "std_unique_ptr",
    srcs  = ['std_unique_ptr.cpp'],
    hdrs  = ['std_unique_ptr.h', 'std_shared_ptr.h'],
)


cc_library(
    name  = "std_weak_ptr",
    srcs  = ['std_weak_ptr.cpp'],
    hdrs  = ['std_weak_ptr.h'],
)


cc_library(
    name  = "std_smart_ptr_apps",
    srcs  = ['std_smart_ptr_apps.cpp'],
    hdrs  = ['std_smart_ptr_apps.h'],
)
